package com.ygs.secs.mapper;

import com.ygs.secs.model.Intention;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IntentionMapper {
    /**
     * delete by primary key
     *
     * @param intentid primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer intentid);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(Intention record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(Intention record);

    /**
     * select by primary key
     *
     * @param stuid primary key
     * @return object by primary key
     */
    Intention selectByPrimaryKey(String stuid);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Intention record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Intention record);

    int updateBatch(List<Intention> list);

    int updateBatchSelective(List<Intention> list);

    int batchInsert(@Param("list") List<Intention> list);
}